package models;

import java.util.*;
import javax.persistence.*;

import play.db.jpa.*;

@Entity
public class User extends Model {

	public String userName;
	public String password;
//attention au unique
	public String email;
	
	public String description;

	//physical characteristics
	public String eyeColor;
	public String hairColor;
	public String hairType;
	public String skinColor;
	public String skinType;
	
	
	
	//photo, products, rate du user ??

	public User(String userName, String email, String password){
		
		this.userName = userName;
		this.email = email;
		this.password = password;
	}
	
	public static User connect(String email, String password){
		return find("byEmailAndPassword", email, password).first();
	}
	
}
